package com.ds.cli.command;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine;

import java.io.File;
import java.util.List;

@CommandLine.Command(name = "list", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable{
    @Override
    public void run() {
        String projectPath = System.getProperty("user.dir");    //获取项目的根目录
        String Path = projectPath + File.separator + "ds-generator-demo-projects/acm-template";  //输入路径
        String inputPath = new File(Path).getAbsolutePath();
        List<File> files = FileUtil.loopFiles(inputPath);
        for(File file: files){
            System.out.println(file);
        }
    }
}
